package zclients

import (
	"github.com/pkg/errors"
	"go.didapinche.com/goapi/plat_operate_history_api"
	"go.didapinche.com/zeus-go/v2"
	"go.didapinche.com/zeus-go/v2/client"
)

func NewOphisService(z *zeus.Zeus) (plat_operate_history_api.TChanOperateHistoryService, error) {
	c, err := client.New(z, "OperateHistoryService")
	if err != nil {
		return nil, errors.Wrap(err, "create zeus OperateHistoryService error")
	}
	tc := plat_operate_history_api.NewTChanOperateHistoryServiceClient(c)
	return tc, nil
}
